<meta charset="UTF-8">
<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/13/14
 * Time: 9:59 PM
 */

include_once("../NymphFramework.php");

$resources = null;
$resources = new \message\MessageResources();

if (\message\MessageResources::hasInstance()) {
  $resources = \message\MessageResources::getInstance();
} else {
  $resources = \message\MessageResources::getInstance();
  $resources->addFile(array("../conf/app_eng.properties"), 'eng');
  $resources->addFile(array("../conf/app_ru.properties"), 'rus');
}

echo "RU: " . $resources->getMessageByKey("test", "rus")."<br>";
echo "ENG: " . $resources->getMessageByKey("test", "eng");